package com.hmall.api.client;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;

@FeignClient(value="cart-service")
public interface CartClient {
//    根据ID集合查询商品详情* GEThttp://localhost:8081/items?ids=1,2,5


    @Operation(summary="批量删除购物车中商品")
    @Parameter(name = "ids",description = "购物车条目id集合")
    @DeleteMapping("/carts")
     void removeByItemIds(@RequestParam("ids") Collection<Long> ids);
}
